import React, { Component } from 'react';
import { Redirect, Route, Switch } from 'react-router-dom';
import Comingsoon from './films/Comingsoon';
import Nowpalying from './films/Nowpalying';
export default class Films extends Component {
    render() {
        return (
            <div style={{ height: '200px', background: 'yellow' }}>
                <div>导航栏</div>
                <Switch>
                    <Route path='/films/nowpalying' component={Nowpalying} />
                    <Route path='/films/comingsoon' component={Comingsoon} />
                    <Redirect from='/films' to='/films/nowpalying'/>
                </Switch>
            </div>
        )
    }
}
